package isp

import (
    `fmt`
)

// 06_repeated_inputs 重复输入

type Talker interface {
    SayHello()string
}

type Dog struct {

}

// The method implicitly implements the Talker interface
// 该方法隐式地实现说话人接口。

func (d Dog)SayHello()string  {
    return "Woof!"
}

func Speak()  {
    var talker Talker
    talker = Dog{}

    fmt.Print(talker.SayHello())

}